package com.shouhuobao.take.parcel;

import java.util.ArrayList;

import com.iseastar.guojiang.consts.MsgID;
import com.iseastar.guojiang.logic.AppHttp;
import com.shouhuobao.station.R;
import com.shouhuobao.take.model.ParcelBean;

import android.os.Message;

/**
 * Created by joker on 2017/5/25. 已超期的包裹列表
 */
public class Parcel3Fragment extends BaseParcelFragment {

	@Override
	protected void findViewById() {
		setContentView(R.layout.take_parcel_list);
		super.findViewById();
		mAdapter = new ParcelAdapter(new ArrayList<ParcelBean>(), getActivityContext());
		mListView.setAdapter(mAdapter);
		//
		showLoadingDialog(null);
		super.parcelType = 3;
		AppHttp.getInstance().takeParcelQueryList(parcelType, 1, null, null);
	}

	@Override
	public boolean handleMessage(Message msg) {
		switch (msg.what) {
		case MsgID.take_parcel_pasted:
			super.handleMessage(msg.obj);
			return true;
		default:
			return super.handleMessage(msg);
		}
	}
}
